package app.netmorphgui.tabs;

import java.awt.BorderLayout;

import javax.swing.JLabel;

import netmorph.model.ConfigFile;

public class GeneralTab extends AbstractTab {
 
 	public GeneralTab(ConfigFile cfg) {
		
		setLayout(new BorderLayout());
		
		add(new JLabel("General settings"), BorderLayout.NORTH);
		table = new JMapTable(cfg, cfg.getGeneralKeys());

		table.update();
		add(table, BorderLayout.CENTER);
	}

	@Override
	public String getTitle() {
		return "General";
	}
	@Override
	public void load(ConfigFile cfg) {
		table.setData(cfg, cfg.getGeneralKeys());
	}

}
